///---------------------------------------------------------------------------- // File: OS_Messages.h // Type: Message Definitions. // Author: Ken Anderson // Date: 3/2/3 -- 7:25PM // OS dependant: NA // // Notes: Contains a set of messages that can be used to tell the program what // events are occuring. // // Header file's required: // 1) Common.h -- Contains core C headers as well as common definitions. // //---------------------------------------------------------------------------- //////////////////////////////// // SYSTEM MESSAGE DEFINITIONS // //////////////////////////////// #include "Common.h" //OSM = Operating System Message #define OSM_NULL 0x0000 //No Message. #define OSM_QUIT 0x0001 //Quit the program. #define OSM_PAINT 0x0002 //Paint the screen. #define OSM_KEYUP 0x0003 //Key has been released. #define OSM_KEYDOWN 0x0004 //Key is being held down. #define OSM_CHAR 0x0005 //A character has been pressed. #define OSM_CLASSINIT 0x0006 //Initialize Class. #define OSM_SIZING 0x0007 //Sizing the window. #define OSM_SIZE 0x0008 #define OSM_EXITSIZEMOVE 0x0009 #define OSM_STARTUP 0x000A //When the system starts up. #define OSM_SHUTDOWNPROGRESS 0x000B //Shutdown is in progress. #define OSM_COMMAND 0x000C //A command event generated by the windows menu system. #define OSM_MENU 0x000D //Menu based commands. #define OSM_MOUSEMOVE 0x000E //Mouse Movements. #define OSM_LBUTTONDBLCLK 0x000F #define OSM_LBUTTONDOWN 0x0010 #define OSM_LBUTTONUP 0x0011 #define OSM_ONIDLE 0x0012 //An event that occurs during idle time. #define OSM_ACTIVATEAPP 0x0013 //An event that occurs when an application is activated or deactivated. #define OSM_APPEVENT 0x0014 //A custom event generated by the application.